#!/bin/sh
# season these to taste
export B_INTERNAL="ip-10-112-50-195.ec2.internal"
export WORKERS=512
# end edit
export SWBASE="/sw/mtags-amqp/src"
cd $SWBASE
hg pull
hg update
./run_workers.py -H $B_INTERNAL -n $WORKERS
sleep 5
/sbin/shutdown -h now